#include<iostream>
using namespace std;
int main()
{
	float h;
	int n=1;
	float m1,m2;
	cin>>h;
	m1=h;
	m2=h/2;
	do
	{
		m1+=m2*2;
		m2/=2;
		n++;
	}while(n<=9);
	cout<<m1<<endl;
	cout<<m2<<endl;
	return 0;
}
